package com.geek.demo01.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName JdbcProperties
 * @Description TODO
 * @Author zzm
 * @Data 2020/9/16 19:37
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "geek.datasource")
@PropertySource("classpath:jdbc.properties")
public class JdbcProperties {
    private String url;
    private String username;
    private String password;
    private String driver;
}
